package Rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
 *@ClassName RoundRobinRuleConfig
 *@Description TODO
 *@Author 吃麻椒的花酱
 *@Date 2021/5/24 14:24
 *@Version 1.0
 */
@Configuration
public class RoundRobinRuleConfig {
    /*
     * @author 吃麻椒的花酱
     * @date  2021/5/24 14:48
     * @Description 负载均衡算法为轮询
     * @param
     * @return com.netflix.loadbalancer.IRule
     */
    @Bean
    public IRule Rule(){
        return new RoundRobinRule();

    }
}
